package com.ideaaedi.zoo.example.springboot.flowable.sharding.event;

import lombok.Data;

import java.util.Objects;

/**
 * flowable历史数据同步事件
 *
 * @author <font size = "20" color = "#3CAA3C"><a href="https://gitee.com/JustryDeng">JustryDeng</a></font> <img
 * src="https://gitee.com/JustryDeng/shared-files/raw/master/JustryDeng/avatar.jpg" />
 * @since 1.0.0
 */
@Data
public class SyncFlowableProcessHisEvent {
    
    /**
     * 流程实例id
     */
    private String processInstanceId;
    
    
    public SyncFlowableProcessHisEvent() {
    }
    
    
    public SyncFlowableProcessHisEvent(String processInstanceId) {
        Objects.requireNonNull(processInstanceId, "processInstanceId should not be null.");
        this.processInstanceId = processInstanceId;
    }
}
